<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="referrer" content="no-referrer" />
    <meta name="viewport" content="width=device-width, initial-scale=1,
            maximum-scale=1, minimum-scale=1, user-scalable=no" />
    <link rel="stylesheet" href="./assest/style/reset.css">
    <link rel="stylesheet" href="./assest/style/font/iconfont.css">
    <link rel="stylesheet" href="./assest/style/common.css">
    <link rel="stylesheet" href="./assest/style/Footer.css">
    <link rel="stylesheet" href="./assest/style/person.css">
    <title>个人中心</title>
</head>

<body>
    <div class="my-center">
        <div class="header flex aic pt-20 pb-20">
            <img id="img1" class="avatar ml-30" src="./assest/img/avatar.png" alt="">
            <img id="img2" class="avatar ml-30" src="./assest/img/avatar2.png" alt="">


            <a id="login" class="ml-10 fff f16" href="./login.html">立即登录</a>
            <p id="phone" style="display: none;font-size: 18px;" class="ml-10">xxxxxxxxxxxx</p>
        </div>
        <div class="bg-fff pl-15 pr-15">
            <div class="item mt-10 bg-fff flex aic jc-sb">
                <span>我的订单</span>
                <span class="f888 icon iconfont f18 icon-yuanquanyoujiantou am-icon-md"> </span>
            </div>
            <div class="item bg-fff flex aic jc-sb">
                <span>我的共享卡</span>
                <span class="f888 icon iconfont f18 icon-yuanquanyoujiantou am-icon-md"> </span>
            </div>
            <div class="item bg-fff flex aic jc-sb">
                <span>我的优惠劵</span>
                <span class="f888 icon iconfont f18 icon-yuanquanyoujiantou am-icon-md"></span>
            </div>
            <a class="item bg-fff flex aic jc-sb" href="./love.html"> <span>我想去</span>
                <span class="f888 icon iconfont f18 icon-yuanquanyoujiantou am-icon-md"> </span>
            </a>
            <a class="item bg-fff flex aic jc-sb" href="./zuji.html">
                <span>我的足迹</span>
                <span class="f888 icon iconfont f18 icon-yuanquanyoujiantou am-icon-md"> </span>
            </a>
            <a class="item bg-fff flex aic jc-sb" href="./set.html">
                <span>设置</span>
                <span class="f888 icon iconfont f18 icon-yuanquanyoujiantou am-icon-md"> </span>
            </a>
        </div>
    </div>

   
    <script src="./js/axios.js"></script>
    <script src="./js/jQuery.js"></script>
    <script src="./js/common.js"></script>
    <script>
        var My = {
            // 渲染
            render() {
                // 把phone从缓存中取出来
                var phone = localStorage.phone;
                if (phone) {
                    // 显示号码
                    $('#phone').show().text(phone);
                    // 隐藏立即登录
                    $('#login').hide();
                    $('#img1').hide();
                    $('#img2').show();
                } else {
                    // 显示号码
                    $('#phone').hide();
                    // 隐藏立即登录
                    $('#login').show();
                    $('#img1').show();
                    $('#img2').hide();
                }
            }
        }

        My.render();
    </script>
</body>

</html>